-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix](ShortCircuit) fix prepared statement with partial arguments prepared #45371
[Fix](ShortCircuit) fix prepared statement with partial arguments prepared #45371
Conversation
…pared We should record the placehold id map to both real Expr and the slot of conjuncts.Otherwise the info is lost
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
TPC-H: Total hot run time: 39860 ms
|
TPC-DS: Total hot run time: 197601 ms
|
ClickBench: Total hot run time: 32.45 s
|
run buildall |
TPC-H: Total hot run time: 39839 ms
|
TPC-DS: Total hot run time: 190209 ms
|
ClickBench: Total hot run time: 32.5 s
|
""" | ||
sql "insert into test_partial_prepared_statement values ('user_guid', 'feature', 'sk','feature_value', '2021-01-01 00:00:00')" | ||
def result2 = connect(user, password, prepare_url) { | ||
def partial_prepared_stmt = prepareStatement "select /*+ SET_VAR(enable_nereids_planner=true) */ * from regression_test_point_query_p0.test_partial_prepared_statement where sk = 'sk' and user_guid = 'user_guid' and feature = ? " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enable_nereids_planner is useless, could be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
PR approved by at least one committer and no changes requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…pared (#45371) We should record the placehold id map to both real Expr and the slot of conjuncts.Otherwise the info is lost, and lead to the conjuncts updated in wrong order(`updateScanNodeConjuncts`)
…rguments prepared #45371 (#45465) Cherry-picked from #45371 Co-authored-by: lihangyu <[email protected]>
…pared (apache#45371) We should record the placehold id map to both real Expr and the slot of conjuncts.Otherwise the info is lost, and lead to the conjuncts updated in wrong order(`updateScanNodeConjuncts`)
…pared (apache#45371) We should record the placehold id map to both real Expr and the slot of conjuncts.Otherwise the info is lost, and lead to the conjuncts updated in wrong order(`updateScanNodeConjuncts`)
What problem does this PR solve?
We should record the placehold id map to both real Expr and the slot of conjuncts.Otherwise the info is lost, and lead to the conjuncts updated in wrong order(
updateScanNodeConjuncts
)Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)